package com.han.neo4jjava.core.location;

import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class LocationQueryService {

    private final LocationRepo locationRepo;

    public List<Location> findAll() {
        return locationRepo.findAll();
    }

    public Location findById(Long id) {
        return locationRepo.findById(id);
    }
}
